import 'package:wanxiang_app/generated/json/base/json_field.dart';
import 'package:wanxiang_app/generated/json/black_entity.g.dart';
import 'dart:convert';
export 'package:wanxiang_app/generated/json/black_entity.g.dart';

@JsonSerializable()
class BlackEntity {
	late int total;
	late List<BlackRows> rows;
	late bool success;

	BlackEntity();

	factory BlackEntity.fromJson(Map<String, dynamic> json) => $BlackEntityFromJson(json);

	Map<String, dynamic> toJson() => $BlackEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class BlackRows {
	@JSONField(name: "AccountNum")
	late String accountNum;
	@JSONField(name: "Reason")
	late String reason;
	@JSONField(name: "CreateTime")
	late String createTime;

	BlackRows();

	factory BlackRows.fromJson(Map<String, dynamic> json) => $BlackRowsFromJson(json);

	Map<String, dynamic> toJson() => $BlackRowsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}